<?php
include_once("functions/database.php");
$data_conn = get_connection();
//添加新闻类别
mysqli_query($data_conn , "insert into category values(null,'娱乐')");
mysqli_query($data_conn , "insert into category values(null,'财经')");
//添加管理员用户admin，密码admin经过MD5函数双重加密
$password = md5(md5("admin"));
mysqli_query($data_conn , "insert into users values(null,'admin','$password')");
close_connection();
echo "成功添加初始化数据";
?>
